﻿package com.tudou.home.controller
{
    import com.tudou.home.commands.*;
    import com.tudou.home.view.*;
    import org.puremvc.as3.interfaces.*;
    import org.puremvc.as3.patterns.command.*;

    public class CopyrightCommand extends SimpleCommand
    {

        public function CopyrightCommand()
        {
            return;
        }// end function

        override public function execute(param1:INotification) : void
        {
            var _loc_2:* = facade.retrieveMediator(SkinMediator.NAME) as SkinMediator;
            switch(param1.getName())
            {
                case CopyrightCommandSet.SHOW_COPYRIGHT_PANEL:
                {
                    _loc_2.setCopyright(true);
                    break;
                }
                case CopyrightCommandSet.CLOSE_COPYRIGHT_PANEL:
                {
                    _loc_2.setCopyright(false);
                    break;
                }
                default:
                {
                    break;
                }
            }
            return;
        }// end function

    }
}
